package com.chuantou.yuba.api.to;

import java.util.List;

import com.chuantou.yuba.util.Constants;
import com.google.gson.annotations.SerializedName;

public class FishingDataTO extends BaseTO {
	@SerializedName("data")
	private FishingListTO data;

	public FishingListTO getData() {
		return data;
	}

	public void setData(FishingListTO data) {
		this.data = data;
	}

	public List<FishingTO> getFishingList() {
		return data == null ? null : data.getFishingList();
	}

	@Override
	public boolean hasNextPage() {
		return data != null && data.getFishingList() != null && data.getFishingList().size() >= Constants.DEFAULT_PAGE_SIZE;
	}

	@Override
	public int getCurrentPage() {
		return data == null ? 1 : data.getCurrentPage();
	}
}
